<?php
    $name = filter_var($_POST['name'], FILTER_SANITIZE_STRING);  
    $message = filter_var($_POST['message'], FILTER_SANITIZE_STRING);
    $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);  
    
    $toemail = 'pwwcad@rit.edu';
    
    
    if(mail($toemail, 'From Pauls Website', $message, 'From: ' . $email)) {
        echo 'Your email was sent successfully.';
    } else {
        echo 'There was a problem sending your email.';
    }
?>